<template>
  <div class="user-table">
    <div class="user-table-title-row">
      <span class="table-title">{{ title }}</span>
    </div>
    <el-table :data="tableData" class="project-application-table">
      <el-table-column label="序号" prop="index" width="60">
        <template v-slot="{$index}">
          {{ $index + 1 }}
        </template>
      </el-table-column>
      <el-table-column label="操作" prop="approveName" min-width="100"/>
      <el-table-column label="操作人" prop="person" min-width="60"/>
      <el-table-column label="审批结果" prop="result" min-width="120"/>
<!--      <el-table-column label="审批结果" prop="result" min-width="120"-->
<!--                       :formatter="(row, column, cellValue) => dicFormatter([{label: '通过', value: 1}, {label: '驳回', value: 0}], cellValue)"/>-->
      <el-table-column label="操作记录" prop="describe" min-width="200" show-overflow-tooltip/>
      <el-table-column label="操作时间" prop="time" min-width="140"/>
    </el-table>
  </div>
</template>

<script>
import {dicFormatter} from "@/views/construction/project-application/projectUtil";

export default {
  name: "ApproveRecord",
  props: {
    title: {
      type: String,
      default: '审批记录'
    },
    tableData: {
      type: Array,
      default: () => []
    },
    personType: undefined,
    options: {
      type: Object,
      default: () => ({})
    },
  },
  data() {
    return {
      dicFormatter,
    }
  },
  computed: {},
  methods: {}
}
</script>

<style lang="less" scoped>
.user-table {
  padding-left: 50px;
  margin-bottom: 20px;

  .user-table-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;

    .table-title {
      font-size: 14px;
    }
  }
}
</style>
